class UnderGraduate extends Student {
    public String degree;

    public UnderGraduate(String name, int age, String degree) {
        super(name, age);
        this.degree = degree;
    }

    public void show() {
        System.out.println("name: " + name + " age: " + age + " degree: " + degree);
    }
}